package ooday02;
/* 超类/父类 */
public class Person {
    //成员变量
    String name;
    int age;
    String address;
    //构造Person,不会被继承，是直接被super调用的
    Person(String name,int age,String address){
        this.name = name;
        this.age = age;
        this.address = address;
    }
    //方法
    void eat() {
        System.out.println(name + "正在吃饭");
    }
    void sleep(){
            System.out.println(name+"正在睡觉");
    }
    void sayHi(){
        System.out.println("大家好，我叫"+name+"我今年"+age+"岁了,我叫住在"+address);
    }
}